app.service('productCategoryService', ['ajax','$q',function (ajax,$q) {

    this.list = function (data){
        var deferred = $q.defer();
        ajax.get({
            url: 'back/commodityCategory/list',
            data: data
        }).then(function (result) {
            deferred.resolve(result);
        })
        return deferred.promise;
    }

}]);
